package com.chen.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chen.dao.UserDao;
import com.chen.pojo.User;
import com.chen.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	public User getUserById(String id) {
		return userDao.getUserById(id);
	}
	public void saveUser(User user) {
		userDao.saveUser(user);
		
	}

}
